package demo.java.springboot.starter;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author cailei
 * @date 2018年12月28日
 */
@SpringBootApplication
@RestController
public class RestApp {
	private static Logger LOG = LogManager.getLogger(RestApp.class);

	@GetMapping("/123")
	String toHome () {
		return "hello springboot...";
	}
	
	public static void main(String[] args) {
		SpringApplication.run(RestApp.class, args);
	}
}
